fixing setup, setup script and form validation