added validation constraint on post title