My girlfriend has the opportunity to move in with me, because the prior roommate is planning to move out and travel.

I'm in the process of getting my name on the lease. I want to be in the position in the event we face tumultuous times and decide to end the relationship I can legally have her removed from the premises. Or maybe have some type of written agreement that we're attempting to try this "moving in" thing and that it is conditional.

Does it work like this? I have no idea, that's why I decided to post. If I used the wrong flair, my bad.