added form validation and seed data