added more login-related stuff