Big commit for authentication, routing logged in users