Minor corrections

Changed order of values assigned to fields of an authentication session.
Plugin name now can be assigned in constructor.