Adding in javascript form validation. I have disabled the default form validation via novalidate for testing purposes, but it would ideally be left in place and use this js as a fallback for dated browsers.