allow other data types in the data field
added temp clear user function for logout