improve the login activity