Fixed auto-login issue.