validate some form input