checking user name when committing