webpage validates input