{%
if AccountId then
    if PwdValid[1] == 0 then
        echo('Add user successfully.')
    elseif PwdValid[1] == -1 then
        echo('The length of user password is too long.\n')
        echo('User password should less than 21 characters.')
    elseif PwdValid[1] == -2 then
        echo('Input password contains incorrect characters.\n')
        echo('Correct character contains any digits, letters, space or the following characters: ' ..
            '`~!@#$%%^&*()-_=+\\|[{}];\'",<.>/?')
    elseif PwdValid[1] == -3 then
        echo('Confirm password error.')
    elseif PwdValid[1] == -5 then
        echo('The password cannot be empty.')
    end
else
    echo('Add user failed.')
end
%}