The username command is used by the router or switch as a local database of users. When you place the command LOGIN LOCAL on the console or aux or vty ports then the device will look to the usernames defined within it for authentication...Hope this helps....