Fixes required fields logic and styling.