added update user's email method