Make hapi 6 compatible

Had to add the `register.attributes`