I did restarted and did process newly again.
this is what i followed: from Node Red Documentation
Username/password based authentication
To enable user authentication on the Editor and Admin API, add the following to your
users property is an array of user objects. This allows you to define multiple users, each of whom can have different permissions.
This example configuration defines a single user called
admin who has permission to do everything within the editor and has a password of
password . Note that the password is securely hashed using the bcrypt algorithm.
Note : in previous releases of Node-RED, the setting
httpAdminAuth could be used to enable HTTP Basic Authentication on the editor. This option is deprecated and should not be used.
Generating the password hash
To generate a suitable password hash, you can use the
node-red-admin command-line tool. Instructions for installing the tool are available here.
The tool will prompt you for the password you wish to use and then print out the hash that can be copied into the settings file.