Add optimistic locking for User