Add functions to enable the front end to detect if the user has signed up successfully or not and hense show the success page or not