Some quick and dirty form validation