Added code to disable submit button when form fields are not valid.