When the login feature is enabled, you can set rules that will validate every time the user loads a form or portal. You can set the criteria by going to:
Form Table & Login or User Table & Login section
Turn on Only allow users to log in if conditions are met
Add Condition(s)