Added method to check if current step is the last

islaststep checks to see if the current step is the last.