updated to use email ids in lower case