Fix off-by-one error
Another fix in is_valid_account_name