user login built and returning data from API