If Only I Have TIme
Sometimes we need to add custom error to the binding result. So here is how we do it:
ObjectError error = new ObjectError("email","An account already exists for this email."); result.addError(error);
It was extracted from here.
Maybe next time I can try the custom error. Look’s better if we can create our own custom error message.