Copied signup function from back/php/extension/signup.php to include/signup_function.php