fix registration redirect