add username length validation check to cli register