Main page style update. Security checks added.