added validation constraints on Micropost