fixed registration redirect issues