updated signup.js to optimize performance