added initial form validation