Added function for getting session token