switch statement used to take care of the response codes
alert view is presented to the user after a successful signup