Email and SMS settings to local settings. Fixed email validation

Email and SMS are now more configurable. Previous validation for email didn't work.