polished the login