chaining in registration script

chaining in registration script by rizwan is update