Pref gui input validation