Fix config evaluates after routes and make authentication urls dynamic