Fix password update bug