Added loading spinner and added authentication token implementation