Created step validation on step enter and step exit