Fixed bug when changing password