Add support for login redirect