Fixed the login issue #1