Added validating JavaScript. Most basic stuff. onSubmit()