Use correct error message according to allowed login type

Addendum to 1ffddb62eb096b41a9d12bf7a5fc86cc1f70cf11 (email login).