Added auth step function