bug fixes and clean up

-added validation for inputs in Preferences
-added toasts for invalid inputs
-min/max can not be higher/lower than the other
-minimum difference of 5 required