new functions in user controller