Fixed email if condition