Regularization term assignment

After adding the regularization term I keep getting wrong value for the cost function

It seems there may be an error in your code.