fix redirect after registration