implemented css form validation