Created custom validator constraints.