added code for registering user
added with build errors
added dialog box for success