fixing bug in setting the admin password.