implemented getting user by email and by email and password