Refactored chained user name comparision