Added a message for register user alerting whether the registration is successful or not.