add the user management function for admin
correct the spec tests