Finalising javascript validation for signup form.