added relationships to users and pins as well as authentication