started work on form validation functionality