Moving logic for getting email to user model.