can use both user and email login