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:
Share (for Form) or User Table & Login (for Portal) section
Turn on Conditional Login
Add Condition(s)