Added function to register for hapi validation.