renamed validateUsers method to validateUser