added validation and testing for case insensitive email