Fixed password problem when registering