Updated with hidden passwor input in terminal.