fix when a password is not provided