Validator for a user registration form
as it probably hits a database, i would call userExists from outside the validate function.
So, registration method first checks the input. Then calls userService.Register(User user, Errors errors). Register detects that username already exists and throws. And validation does not need to know about usernames and that they are unique or non-unique.