added backend logic for handling different routes. hooked up user model with front. also study model.