Arduino Webserver with Temperature Monitor / Control

Hi, this code is really nice! I modified it a little bit to be used with LM35DZ.
Now I need to implement the basic authentication (otherwise everybody can enter my home system and switch on my heater!!!) but I am completely lost!!! Could someone help me please?
thanks!

thermostat.ino (11 KB)