Do not keep user in local var as it is always available from NX.State
Tidy
Fix licensing state handling