[added] form validation