Configure Local Authentication 
R1(config)# username user01 algorithm-type scrypt secret user01pass

Configure local authentication for the console line and login
R1(config)# line console 0 
R1(config-line)# login local

R1(config)# line vty 0 4 
R1(config-line)# login local 
R1(config-line)# transport input telnet