Get emailid outside of condition