add index to user email + tests