Learn how to use an API to test the validity of the email address and even trigger an onscreen error message.

CloudPages: Dynamic Redirect using a parameter in the URL
Learn how to pass a parameter to a CloudPage and use AMPscript to decide dynamically where it should redirect