Added sessions. Basic auth done