now working on routes and trying to get logged in logic to work