deleted csrf token in signup.js and refactored the code a bit.