add check in get email method