Added validations for the post title and content, then tested.