created user and added relationships between models