Finished validation for modal and message input