updated js for signup