Fixed some issues in Password class