Added associations, and user authentification.