changed the validation part of the send button