Fix login/authentication issues