def checkPassword(request, password):
    """
    Simple password-based authentication - the same password of the host like on the Instagram
    :param request: request to autheticate
    :param password: Instagram and Web password of the host user
    :return: True or False if authentication failed
    """
    if 'password' in request.headers:
        if password == request.headers['password']:
            print('PASSWORD OK')
            return True
    print('wrong password')
    return False
