preferences again

toast/alert added for invalid inputs to preferences