Why submit button not working on the form when Credit card option is not selected?