change username to _id according to requirements