Updating login system and creating sessions