add validation in Post model to pass tests