Fix error

passwords can not be empty and would be updated only if the password
field has a value