Added Form parameter handling for testing