Why is my field showing up even when it should be hidden?