fix login with email address

Signed-off-by: xiehuc <xiehuc@gmail.com>