intercept user functions to set user