fix when encrypted_password is blank