When passwords are encrypted, unauthorized persons cannot view them in configuration files since the encrypted form of the password is displayed in the running-config.
Solution
Run the following command to encrypt passwords : service password-encryption