Fix empty password update bug