Prevent form from being submitted without content.