Text box validating event
Add the following code to the Home Controller class.
The Home Controller class contains two versions of the Index() action method.
Search for text box validating event:
The [Metadata Type] attribute accepts the type of the class that is supplying metadata information to the User Profile class (User Profile Metadata in this case).