Fix bug where password would be blank for no reason