Add validation for step and the validateOnlyToAdvance attribute
Unit tests for validation