update repository and entity
login mechanism and client-token repository