added the routes and the case statements for sign in and out