A cyclic timer program with input dependent condition

This?

 if ((millis() - lastTimerTime) > 90000) {

Do your inputs have pull-up or pull-down resistors installed? Your code demands it. A more common approach it to declare them as INPUT_PULLUP and connect one side to ground and the other to the input pin. Reading LOW means the switch is closed.