Add validation to invite new user form.

Closes #3246
* Add a UserValidator to the validation engine that runs a set
  of validations based on the user status.
* Added validations for invited users and active users.