Added better solution checking
working on email functionality
email functionality