def set_pass_code():
    """
    Set and validate the password
    :return: string
    """
    pass_code = input('Enter your Oracle Commerce Cloud backend pass-code: ')
    while True:
        if len(pass_code) >= 5:
            return pass_code
        else:
            pass_code = input(
                'Enter your Oracle Commerce Cloud backend pass-code: ')
