micropost.rb: added validation