session removed
improvements added. Commented for client validation