Reverting changes to vaildateStep function