manageUser - partly functional