Adds a success page when button is clicked
Adds an error page for unsuccessful users