Simple login example for ionic with AngularJS http://www.devdactic.com