CSS styles on form do not seem to get updated