made idea for form validation