adding form validator