Refined form validation and included reset button