Fixed user rights bug

Normal users can't use the app.
This fix is only a quick fix - we should change TR_USERROLE_GUEST to a number 2^n != 0 
and should ensure that a user can only be TR_USERROLE_GUEST  or TR_USERROLE_NORMAL.