fix for redirect url seemingly getting lost after registration failure