ng-messages functionality for registrations