Fixed error where emails would not be marked as valid
Added method to database to view the last error