implemented trackUser method