added validation to page post variable