JSR 303 Validation has been integrated

Bean validation is integrated so that the Customer credentials are validated every time on login or register.