Implemented UserValidator and added the bean to application-context