Making sure the user logs in