Added title and content validation to post.rb