update session module. add getUsername method.