moving user functionality to admin module