def is_logged_in(session):
    """Check if the user is currently logged in.

    If the user has a teamID in their session return success:1 and a message
    If they are not logged in return a message saying so and success:0
    """
    if 'tid' in session:
        return {'success': 1, 'message': 'You appear to be logged in.'}
    else:
        return {"success": 0, "message": "You do not appear to be logged in."}