implemented nonphp related validation