Added attr_accessible to post model