a little more login-related fixing