Product Events like agent sign in and sign out event

In a use case, as soon as the agent successfully logs into the agent portal, we need to pop up a modal or redirect to another web page in which agent supposed to input few data and only after successfully submitting the data, the agent should be redirected to his agent portal.

Is this usecase possible to implement.

Thanks in advance