Sets up login.