These are just automated bot attacks and not unusual for any internet exposed system. To get a list of users you can use `getent` in CentOS:
getent passwd | awk -F':' '{ print $1 }'
To put it together with what you already have:
while read -r count user; do
printf '%s %s ' "$user" "$count"
if getent passwd | grep -q "^$user:"; then
printf 'valid\
'
else
printf 'invalid\
'
fi
done < <(awk 'gsub(".*sshd.*Failed password for (invalid user )?", "") {print $1}' /var/log/secure* | sort | uniq -c | sort -rn | head -5)