finalized form validation