use ng-click to handle the login