fixed validation bug in settings controller