Fix settings form validation