new file checkUsersValid.js