Add form validation in chat invitations