added validation type PostType