redo for signup javascript