Adding sessions and login authentication