Session class and Login function added