Fix bug where password was shown in terminal