Using Yubikey without password auth

When using yubikey OR a password needed to remove the resource = valid_password? and also change the resource.valid_password?(password) after validate(resource) since the password may be blank if using the Yubikey only for auth.