extracted js for signup