Hats can only be certain shapes to work with the hair. Hats have the options to hide all of the hair, none of the hair, or hide the top half in two different angles. There isn't a hair shape in the game that fits the shape of hat you are trying to make.
If you are having problems seeing the CAPTCHA, please clear your browser's cache and cookies and ensure that you do not have any browser addons or extensions that interfere with the display of the CAPTCHA. Then, close the CAPTCHA window and click on the register button to open the CAPTCHA again.