added form validation thoughout page