remains a bug about writing user.name into database