Fixes redirect after resetting password.