Fixed custom redirection after login