Added check in controller for failure of save method