Hello @Ajit Kumar Tripathi,
If you are using the Cisco Catalyst C1000/9200/9300/9500 switches without AAA model, you can configure a local user/password policy directly on the switches.
username [name] privilege [priv_level] secret/password [password]
Under line con/vty add the command "login local"
this guide talk about only AAA but try it for local user, i.e. config aaa with local user
Ok @Ajit Kumar Tripathi, sorry.
I always see AAA model for that purpose.