added an error message when not all of the required fields are entered and added a response to the submit button