form validation for pop-in