Fixing the login issue