initialized angularjs component of frontend, setting up token authentication