Added associations and validations to blog app