Fix bug, when no username column is present

When you don't use username, you may want to don't create a username column. With this fix, the database request concern only email and will not fire an error.