fixed login problem due to sessions -leo