validate post page on client side