error handling/loggin when saving entries