added check for referrer while registering new user