chainging how we handle the login redirect