pawn validation rewritten