Added sessions and authentication