prevent user from repeated hittig enter and submitting blank messages