save passwords by button, id generation bug fixed