Fixing email notification bug (that is what you get for testing with invalid creds)