Fixed structure, compatibility and changed styles

-fixed index and layout css structure and removed unnecessary lines
-removed unnecessary lines  on nav css
-changed login style ,fixed structure and comments
-fixed comments and structure on check login, logout, footer, nav, sidebar and SQL
-changed login php:
--replaced table with divs
--added new 'id's  and actions