Code written for Consumer Registration.