changes routes for logged_in and non_logged_in user