fixed user repo not getting initialized