I have come across the phrase 気をつけなければ but I do not understand how it works. 
Google translate says that it means "I have to be careful" but I can't find which conjugation it is using. To me it looks like the provisional form but I don't understand how that fits here.
The full sentence is 両親を起こさないように気をつけなければならなかった.