Callback function support for login redirect route