Moved user specific code from admin to backend