some work with authentification on angularjs