make first page form fields required in javascript