add condition for if email present