Error corrected in send button logic