Implemented validateService method. Refactored session