Changed to validate code

I missed a closing change when i changed the heading type