Php object to check user input entered in html form.