Added restricted routes and partial login/logout