Fixed email templates. Made login id case insensitive.