Created access token service, fixed bugs