bug 753563 - move username regex and error message to central location.