Added Sessions

Added sessions to store variables correctly and therefore check amount