You've defined `validate` twice in this file....