Use ui-toggle directive from angular-ui showhide library instead of ng-show to display login error messages.