Teamviewer pc restart issue.

Options

I use teamviewer to remote control my PC when i am away on holiday.

The issue i am having  is sometime my computer restarts . though i have selected: start teamviewer with windows , i cannot connect to it remotely if my computer restarts. I have to tell someone to physically log in with my windows password and launch teamviewer before i am able to remotely control my computer. 

How can i remote control my pc after a restart or crash?

Second question is there a way i can use teamviewer to turn on my computer if its turned off?