Removed debug and added session var for attempts