My Keypad Door Lock.

I have one question. When the "electric power" is stopped and started, in the starter my arduino uno make all the digital output in "high" for few seconds, so the door open. How avoid this?