validation done for registration

Removed java script and used msgbox function to display registered token