for email setting correctly