example of login with angular and ionic