initial revision of Login and session implementation.