Fixed email validication so it returns valid emails if it matches email pattern and returns the empty string if not.