add logical when the send user hit enter