implemented PostService and client validation