took care of the login/sessions stuff