Server side login added

authentication, cookies and sessions creation