working rpn validation