Work with authentication. Added sessions