It's all down to terms and conditions. Read the google ones and see what you think. The key bit refers to the ads being on non-content pages. As the header is on all pages like logins, registration, confirmation etc, technically they are non content. You could try mailing them to ask if it's ok.