Added :user association and validation for text in post.rb