changed username type to email