Update main.js

Added the save password