Added the usernameIsEmail option