new details
added form validation