parse data from login API