fixed crash when entering email address