finally fixed the login issue