checking for errors when passing password to sshpass