Removed unused function in user controller