Fixed bug

Fixed the bugg with sessions.
Validator