* @throws ValidationException thrown if the password is empty or different than the one
* store in database
*/
public void matchPassword(String pwd) {
if (pwd == null || "".equals(pwd))
throw new ValidationException("Invalid password");
// The password entered by the customer is not the same stored in database
if (!pwd.equals(password))
throw new ValidationException("Passwords don't match");
}