fix log-in issue