Hi Sakit,
Basically any business logic you can define in code can be scripted into the authentication process. So yes, it's possible to repeat a specific step.
Then regarding your second question... this also seems like something that can be coded into your authentication script. It's not totally clear to me how it will work, but it seems like using if/else statements, you should be able to code the logic that meets your requirements.
Thanks,
Will