adding form validator. step 1