I created new roles and users. Then logged out and logged in using the user which i created. It worked perfectly. Then i stopped the server and updated the engine.properties file with
create.demo.users=false
Then started the server. But I was not able to login. Whenever i bounce the server the database is being reset with default values. How to prevent database from resetting the DB with default values.