added form validation. removed old files