added update method to userrepo