correcting spelling of validate function

I'm not sure if this spelling was intentional but it seemed like a typo.