Settings form validation improvement