Added index to email, changed 'name' to 'username'