finilized js for signup and started homepage