fix check for a valid registration in the success page