Implemented post validation logic