Login, register and team list in AngularJS