Fix HTTP-based credentials issues during form validation.

Fix form validation for HTTP-based Git repos by creating a temporary workspace using the same directory used to store the credentials.