check manditory Post variables in validator