changed login/logout routes to the new format