Add method getIdentity() into UserRepository