working login and getuserdatabyemail