Created custom validations and validation messages.