update the user entity and the user repository in order to allow loging either by username or password