fixes login with username and email possible