fix bug in edit profile when the password is not set