Fixed a bug where the password would not get set