How can I prevent forms from being submitted that do not have required fields filled out?