Added form validation for adding invitations