added Post and Comment validation