Formatting settings form based on validation.