Fixed version for updatePassword