Fix for redirect on registration.