{%
if GetPathSuccess then
    if GetLoginInterfaces[1] then
        if PwdValid[1] == 0 then
            echo('Set user login interface successfully.')
        elseif PwdValid[1] == -1 then
            echo('The length of user password is too long.\n')
            echo('User password should less than 21 characters.\n')
        elseif PwdValid[1] == -2 then
            echo('Input password contains incorrect characters.\n')
            echo('Correct character contains any digits, letters, space or the following characters: ' ..
                '`~!@#$%%^&*()-_=+\\|[{}];\'",<.>/?\n')
        elseif PwdValid[1] == -3 then
            echo('Confirm password error.\n')
        end
    else
        echo('Set user login interface successfully.')
    end
else
    echo(string.format('User %s doesn\'t exist.', UserName))
end
%}