Registration page

I have a registration page (webpage public). The user will fill the details and submit the data. Then a new page should be shown with message

Dear forename surname,

You successfully registered to the application… .



Regards,

XxxxxxxXxxxxxx

If the user already exists in the system, need to show another message

Dear Forename surname,

You are already registered. Please login to the application … . . .



Regards,

For showing this messages. I added a public authenticated webpage. On button click, configured to navigate to this page. Success message is showing successfully. But failed one is not showing because Context record id is not available.

How I can show the failed message in another page.?

You should be able to pass the context record id through to the authed page and use the record to determine which message to show.