Narrowed the issue down to createAccount.php