update to rails app - added microposts and validation to model