Fixed bug that incorrectly updated user password