Use a user factory in order to log in.