working code on registration with vendor radio button bug in messages