js script, preventing the user from submitting a blank text