added self.find_by_name and selfsave to user_repo.rb