Fix for problem that password could not be changed