Dont use loop while registering.