Smarter referer behavior for registration