I am trying to validate user input using a custom validator, Below is the validator code I have been using.
public void validate(Object target, Errors errors)