check for logged user on every page. and added some style