add index over  user name field in users collection and add query that retrieves user by name