Added extremely simple check on save action. Will need to improve it later