Fixes 404 and login callback.