validation set up to display error styling and check new each click of save