I have a sign-in box in my webpage which is inside an UpdatePanel
first create a function that makes the action you need (redirect to page for example)
Second add timer to your markup and set the time interval to 5000 ( 5 sec) and mark the timer as enabled=false so the timer wont start after the page loading
once the user is validated successfully, show the message you want then enable the timer