added in a check for email addresses if not set then shows a message