fixed redirect after registered.