Save settings before connect to network / create access point and display validation errors and only close settings when settings are saved