Added some handling for failing login with duplicate email