As the username doesn't have to be an email, having email as the type is incorrect. This change also makes it more consistent with the way it is defined in the login form.