def _login(item):
    """Handle login entries

        Returns: title, username, password, url, notes (include any extra URLs)

    """
    title = item['name']
    notes = item.get('notes', '') or ''
    url = None

    if len(item['login'].get('uris', [])) > 0:
        urls = [i['uri'] or '' for i in item['login']['uris']]
        url = urls[0]
        if len(urls) > 1:
            notes = "{}\n{}".format(notes, "\n".join(urls[1:]))

    username = item['login'].get('username', '') or ''
    password = item['login'].get('password', '') or ''

    return title, username, password, url, notes