add logging and redirection for RecordNotFound error in the cart controller