fixing logical error in form styles