Authentication using JWT and AngularJS