Added routes and logic to handle signed in state at startup