Form validation stuff

Added the form validation stuff. 

If you're missing something, an error message underneath the text box pops up