Day6 Pull Request for Code Review

Is it possible that saving the details to the json will fail?
If so, please handle the error by returning "false" if it fails :bow: 

Then handle the error as well when the saveDetails() returns a failed status :bow: