adding exception handling for generating unique username. Refs #708