added hook validator
make the route respond to any
added auth in the validation hook
added type field in the hook