Added session table and login support