replaced the old signup.js
fix some async bugs
fix values problem