Fixed problem when changing user's email and password on the same session not working.