Added form validation stuff and fixed misspellings