Associations and validations are added for posts and comments