check email length before parsing