Added ng-show with if statement to display or hide error messages.