Created membership model, validations for memberships courses and users, and associations between the models