$('#proceed').on('click', '#next3', function() {
// CHeck values to see if account created
// IF so, show next mod
var accountCreated = 0;
accountCreated = insertDataToDB(); // THIS RETURNS SUCCESS!
if(accountCreated==1)
{
$("#mod3").fadeOut(1000, function(){
$("#mod4").show();
});
}else{
alert(accountCreated); // THIS RETURNS UNDEFINED
}
});