Skip redirect on password module when request is xhr