"Check for client logins" function.