Update index.php

Not every "method=POST" case will call "login ()" function.
Added source link for jquery library.
Logged in users name will appera in the "ul class='menu'" element, styled with CSS.