started client side form validation system (incomplete)